package com.example.ibsp_demo.pojo.entity.content;

import java.util.Date;

public class Album {
    private Integer id;
    private Integer uid;
    private String title;
    private String description;
    private Integer coverImageId;
    private Boolean isPublic;
    private Date createdAt;
    private Date updatedAt;

    // 无参构造函数
    public Album() {
    }

    // 有参构造函数
    public Album(Integer id, Integer uid, String title, String description, Integer coverImageId, Boolean isPublic, Date createdAt, Date updatedAt) {
        this.id = id;
        this.uid = uid;
        this.title = title;
        this.description = description;
        this.coverImageId = coverImageId;
        this.isPublic = isPublic;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }

    // Getter 和 Setter 方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getCoverImageId() {
        return coverImageId;
    }

    public void setCoverImageId(Integer coverImageId) {
        this.coverImageId = coverImageId;
    }

    public Boolean getPublic() {
        return isPublic;
    }

    public void setPublic(Boolean isPublic) {
        this.isPublic = isPublic;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    // toString 方法
    @Override
    public String toString() {
        return "Album{" +
                "id=" + id +
                ", uid=" + uid +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", coverImageId=" + coverImageId +
                ", isPublic=" + isPublic +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}